home *** CD-ROM | disk | FTP | other *** search
/ PC/CD Gamer UK 123 / CD Gamer Issue 123 (June 2003) (Disc 1).ISO / Games / Dev_Demo_EU / data1.cab / App_Executables / System / DInventory.u / ScriptText37.TextBuffer < prev    next >
Unknown  |  2003-02-28  |  7.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 5c 76 2f 2f 2f 2f 2f 2f |........|\v//////|
|00000010| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000020| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000030| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000040| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000050| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 0d 0a 2f 2f 20 20 20 |////////|/..// |
|00000060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000a0| 20 20 20 20 20 20 20 20 | 2f 2f 0d 0a 2f 2f 20 24 | |//..// $|
|000000b0| 57 6f 72 6b 66 69 6c 65 | 3a 3a 20 44 44 65 63 6f |Workfile|:: DDeco|
|000000c0| 64 65 72 2e 75 63 20 20 | 20 20 20 20 20 20 20 20 |der.uc | |
|000000d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000f0| 20 20 20 20 20 20 20 20 | 24 2f 2f 0d 0a 2f 2f 20 | |$//..// |
|00000100| 24 52 65 76 69 73 69 6f | 6e 3a 3a 20 37 31 20 20 |$Revisio|n:: 71 |
|00000110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000140| 20 20 20 20 20 20 20 20 | 20 24 2f 2f 0d 0a 2f 2f | | $//..//|
|00000150| 20 20 20 20 20 24 44 61 | 74 65 3a 3a 20 32 2f 31 | $Da|te:: 2/1|
|00000160| 36 2f 30 33 20 35 3a 33 | 38 70 20 20 20 20 20 20 |6/03 5:3|8p |
|00000170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000190| 20 20 20 20 20 20 20 20 | 20 20 24 2f 2f 0d 0a 2f | | $//../|
|000001a0| 2f 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |/ | |
|000001b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2f 0d 0a | | //..|
|000001f0| 2f 2f 20 28 63 29 20 32 | 30 30 30 2d 32 30 30 31 |// (c) 2|000-2001|
|00000200| 20 44 69 67 69 74 61 6c | 6f 20 53 74 75 64 69 6f | Digital|o Studio|
|00000210| 73 2c 20 49 6e 63 2e 20 | 20 20 20 20 20 20 20 20 |s, Inc. | |
|00000220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2f 0d | | //.|
|00000240| 0a 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |.///////|////////|
|00000250| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000260| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000270| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000280| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000290| 0d 0a 63 6c 61 73 73 20 | 44 44 65 63 6f 64 65 72 |..class |DDecoder|
|000002a0| 20 65 78 74 65 6e 64 73 | 20 44 57 65 61 70 6f 6e | extends| DWeapon|
|000002b0| 3b 0d 0a 0d 0a 23 65 78 | 65 63 20 4f 42 4a 20 4c |;....#ex|ec OBJ L|
|000002c0| 4f 41 44 20 46 49 4c 45 | 3d 2e 2e 5c 53 4f 55 4e |OAD FILE|=..\SOUN|
|000002d0| 44 53 5c 55 44 4d 69 73 | 63 2e 75 61 78 20 4e 41 |DS\UDMis|c.uax NA|
|000002e0| 4d 45 3d 55 44 4d 69 73 | 63 0d 0a 23 65 78 65 63 |ME=UDMis|c..#exec|
|000002f0| 20 4f 42 4a 20 4c 4f 41 | 44 20 46 49 4c 45 3d 2e | OBJ LOA|D FILE=.|
|00000300| 2e 5c 54 45 58 54 55 52 | 45 53 5c 44 57 65 61 70 |.\TEXTUR|ES\DWeap|
|00000310| 53 6b 69 6e 73 2e 75 74 | 78 20 4e 41 4d 45 3d 44 |Skins.ut|x NAME=D|
|00000320| 57 65 61 70 53 6b 69 6e | 73 0d 0a 0d 0a 76 61 72 |WeapSkin|s....var|
|00000330| 28 29 20 53 6f 75 6e 64 | 09 09 4e 65 77 43 6f 64 |() Sound|..NewCod|
|00000340| 65 53 6f 75 6e 64 2c 0d | 0a 09 09 09 09 46 61 69 |eSound,.|.....Fai|
|00000350| 6c 65 64 53 6f 75 6e 64 | 2c 0d 0a 09 09 09 09 44 |ledSound|,......D|
|00000360| 65 63 6f 64 69 6e 67 53 | 6f 75 6e 64 3b 0d 0a 76 |ecodingS|ound;..v|
|00000370| 61 72 20 73 74 72 69 6e | 67 20 43 6f 64 65 53 74 |ar strin|g CodeSt|
|00000380| 72 69 6e 67 3b 0d 0a 0d | 0a 76 61 72 20 61 72 72 |ring;...|.var arr|
|00000390| 61 79 3c 4e 61 6d 65 3e | 20 43 6f 64 65 73 3b 0d |ay<Name>| Codes;.|
|000003a0| 0a 0d 0a 76 61 72 20 53 | 63 72 69 70 74 65 64 54 |...var S|criptedT|
|000003b0| 65 78 74 75 72 65 20 44 | 69 73 70 6c 61 79 3b 0d |exture D|isplay;.|
|000003c0| 0a 0d 0a 63 6f 6e 73 74 | 20 4c 4f 47 5f 44 45 43 |...const| LOG_DEC|
|000003d0| 4f 44 45 52 20 3d 20 54 | 52 55 45 3b 0d 0a 0d 0a |ODER = T|RUE;....|
|000003e0| 73 69 6d 75 6c 61 74 65 | 64 20 66 75 6e 63 74 69 |simulate|d functi|
|000003f0| 6f 6e 20 62 6f 6f 6c 20 | 43 61 6e 49 6e 74 65 72 |on bool |CanInter|
|00000400| 61 63 74 57 69 74 68 28 | 20 4b 65 79 50 6f 69 6e |actWith(| KeyPoin|
|00000410| 74 20 49 50 20 29 0d 0a | 7b 0d 0a 09 69 66 20 28 |t IP )..|{...if (|
|00000420| 20 21 44 44 65 6c 61 79 | 65 64 49 6e 74 65 72 61 | !DDelay|edIntera|
|00000430| 63 74 50 6f 69 6e 74 28 | 49 50 29 20 7c 7c 20 21 |ctPoint(|IP) || !|
|00000440| 48 61 73 43 6f 64 65 46 | 6f 72 28 44 44 65 6c 61 |HasCodeF|or(DDela|
|00000450| 79 65 64 49 6e 74 65 72 | 61 63 74 50 6f 69 6e 74 |yedInter|actPoint|
|00000460| 28 49 50 29 29 20 29 0d | 0a 09 09 72 65 74 75 72 |(IP)) ).|...retur|
|00000470| 6e 20 46 41 4c 53 45 3b | 0d 0a 09 65 6c 73 65 0d |n FALSE;|...else.|
|00000480| 0a 09 09 72 65 74 75 72 | 6e 20 54 52 55 45 3b 0d |...retur|n TRUE;.|
|00000490| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|000004a0| 66 75 6e 63 74 69 6f 6e | 20 62 6f 6f 6c 20 53 65 |function| bool Se|
|000004b0| 6c 65 63 74 61 62 6c 65 | 28 29 0d 0a 7b 0d 0a 09 |lectable|()..{...|
|000004c0| 69 66 20 28 20 57 45 41 | 50 5f 44 45 42 55 47 3f |if ( WEA|P_DEBUG?|
|000004d0| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 54 52 55 | )....re|turn TRU|
|000004e0| 45 3b 0d 0a 0d 0a 09 72 | 65 74 75 72 6e 20 47 65 |E;.....r|eturn Ge|
|000004f0| 74 49 50 28 29 3f 3b 0d | 0a 7d 0d 0a 0d 0a 73 69 |tIP()?;.|.}....si|
|00000500| 6d 75 6c 61 74 65 64 20 | 66 75 6e 63 74 69 6f 6e |mulated |function|
|00000510| 20 53 65 74 46 69 72 65 | 4d 6f 64 65 28 29 0d 0a | SetFire|Mode()..|
|00000520| 7b 0d 0a 09 69 66 20 28 | 20 44 50 6c 61 79 65 72 |{...if (| DPlayer|
|00000530| 50 61 77 6e 28 50 61 77 | 6e 4f 77 6e 65 72 29 2e |Pawn(Paw|nOwner).|
|00000540| 62 49 6e 74 65 72 61 63 | 74 20 21 3d 20 30 20 29 |bInterac|t != 0 )|
|00000550| 0d 0a 09 09 43 75 72 72 | 65 6e 74 46 69 72 65 4d |....Curr|entFireM|
|00000560| 6f 64 65 20 3d 20 50 52 | 49 46 49 52 45 3b 0d 0a |ode = PR|IFIRE;..|
|00000570| 09 65 6c 73 65 0d 0a 09 | 09 53 75 70 65 72 2e 53 |.else...|.Super.S|
|00000580| 65 74 46 69 72 65 4d 6f | 64 65 28 29 3b 0d 0a 7d |etFireMo|de();..}|
|00000590| 0d 0a 0d 0a 73 69 6d 75 | 6c 61 74 65 64 20 66 75 |....simu|lated fu|
|000005a0| 6e 63 74 69 6f 6e 20 50 | 6c 61 79 46 69 72 69 6e |nction P|layFirin|
|000005b0| 67 28 29 0d 0a 7b 0d 0a | 09 50 6c 61 79 4d 65 64 |g()..{..|.PlayMed|
|000005c0| 69 61 28 20 61 6e 46 69 | 72 65 2c 20 57 4d 49 5f |ia( anFi|re, WMI_|
|000005d0| 4c 4f 4f 50 20 29 3b 0d | 0a 7d 0d 0a 0d 0a 73 69 |LOOP );.|.}....si|
|000005e0| 6d 75 6c 61 74 65 64 20 | 66 75 6e 63 74 69 6f 6e |mulated |function|
|000005f0| 20 62 6f 6f 6c 20 50 6c | 61 79 65 72 57 61 6e 74 | bool Pl|ayerWant|
|00000600| 73 54 6f 46 69 72 65 28 | 29 0d 0a 7b 0d 0a 09 72 |sToFire(|)..{...r|
|00000610| 65 74 75 72 6e 09 50 6c | 61 79 65 72 53 74 69 6c |eturn.Pl|ayerStil|
|00000620| 6c 46 69 72 69 6e 67 28 | 29 3b 0d 0a 7d 0d 0a 0d |lFiring(|);..}...|
|00000630| 0a 73 69 6d 75 6c 61 74 | 65 64 20 66 75 6e 63 74 |.simulat|ed funct|
|00000640| 69 6f 6e 20 62 6f 6f 6c | 20 50 6c 61 79 65 72 53 |ion bool| PlayerS|
|00000650| 74 69 6c 6c 46 69 72 69 | 6e 67 28 29 0d 0a 7b 0d |tillFiri|ng()..{.|
|00000660| 0a 09 72 65 74 75 72 6e | 20 28 50 61 77 6e 4f 77 |..return| (PawnOw|
|00000670| 6e 65 72 2e 62 46 69 72 | 65 3f 20 7c 7c 20 50 61 |ner.bFir|e? || Pa|
|00000680| 77 6e 4f 77 6e 65 72 2e | 62 41 6c 74 46 69 72 65 |wnOwner.|bAltFire|
|00000690| 3f 20 7c 7c 20 44 50 6c | 61 79 65 72 50 61 77 6e |? || DPl|ayerPawn|
|000006a0| 28 4f 77 6e 65 72 29 2e | 62 49 6e 74 65 72 61 63 |(Owner).|bInterac|
|000006b0| 74 3f 29 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |t?);..}.|...simul|
|000006c0| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 44 44 |ated fun|ction DD|
|000006d0| 65 6c 61 79 65 64 49 6e | 74 65 72 61 63 74 50 6f |elayedIn|teractPo|
|000006e0| 69 6e 74 20 47 65 74 49 | 50 28 29 0d 0a 7b 0d 0a |int GetI|P()..{..|
|000006f0| 09 72 65 74 75 72 6e 20 | 44 44 65 6c 61 79 65 64 |.return |DDelayed|
|00000700| 49 6e 74 65 72 61 63 74 | 50 6f 69 6e 74 28 44 50 |Interact|Point(DP|
|00000710| 6c 61 79 65 72 50 61 77 | 6e 28 50 61 77 6e 4f 77 |layerPaw|n(PawnOw|
|00000720| 6e 65 72 29 2e 49 6e 74 | 65 72 61 63 74 50 6f 69 |ner).Int|eractPoi|
|00000730| 6e 74 29 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |nt);..}.|...simul|
|00000740| 61 74 65 64 20 73 74 61 | 74 65 20 41 74 74 65 6d |ated sta|te Attem|
|00000750| 70 74 49 6e 74 65 72 61 | 63 74 69 6f 6e 0d 0a 7b |ptIntera|ction..{|
|00000760| 0d 0a 09 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|00000770| 63 74 69 6f 6e 20 49 6e | 74 65 72 61 63 74 50 6f |ction In|teractPo|
|00000780| 69 6e 74 20 47 65 74 49 | 6e 74 65 72 61 63 74 50 |int GetI|nteractP|
|00000790| 6f 69 6e 74 28 29 0d 0a | 09 7b 0d 0a 09 09 6c 6f |oint()..|.{....lo|
|000007a0| 63 61 6c 20 44 44 65 6c | 61 79 65 64 49 6e 74 65 |cal DDel|ayedInte|
|000007b0| 72 61 63 74 50 6f 69 6e | 74 20 49 50 3b 0d 0a 0d |ractPoin|t IP;...|
|000007c0| 0a 09 09 66 6f 72 65 61 | 63 68 20 52 61 64 69 75 |...forea|ch Radiu|
|000007d0| 73 41 63 74 6f 72 73 28 | 63 6c 61 73 73 27 44 44 |sActors(|class'DD|
|000007e0| 65 6c 61 79 65 64 49 6e | 74 65 72 61 63 74 50 6f |elayedIn|teractPo|
|000007f0| 69 6e 74 27 2c 49 50 2c | 4c 65 76 65 6c 2e 4d 61 |int',IP,|Level.Ma|
|00000800| 78 49 6e 74 65 72 61 63 | 74 44 69 73 74 61 6e 63 |xInterac|tDistanc|
|00000810| 65 29 0d 0a 09 09 7b 0d | 0a 09 09 09 6c 6f 67 28 |e)....{.|....log(|
|00000820| 20 49 50 2e 43 61 6e 49 | 6e 74 65 72 61 63 74 28 | IP.CanI|nteract(|
|00000830| 50 61 77 6e 4f 77 6e 65 | 72 29 40 49 50 2e 49 73 |PawnOwne|r)@IP.Is|
|00000840| 50 6c 61 79 65 72 46 6f | 63 75 73 28 50 61 77 6e |PlayerFo|cus(Pawn|
|00000850| 4f 77 6e 65 72 29 40 48 | 61 73 43 6f 64 65 46 6f |Owner)@H|asCodeFo|
|00000860| 72 28 49 50 29 2c 20 27 | 49 6e 74 65 72 61 63 74 |r(IP), '|Interact|
|00000870| 27 20 29 3b 0d 0a 09 09 | 09 69 66 28 20 49 50 2e |' );....|.if( IP.|
|00000880| 43 61 6e 49 6e 74 65 72 | 61 63 74 28 20 50 61 77 |CanInter|act( Paw|
|00000890| 6e 4f 77 6e 65 72 20 29 | 20 26 26 20 49 50 2e 49 |nOwner )| && IP.I|
|000008a0| 73 50 6c 61 79 65 72 46 | 6f 63 75 73 28 20 50 61 |sPlayerF|ocus( Pa|
|000008b0| 77 6e 4f 77 6e 65 72 20 | 29 20 26 26 20 48 61 73 |wnOwner |) && Has|
|000008c0| 43 6f 64 65 46 6f 72 28 | 20 49 50 20 29 20 29 0d |CodeFor(| IP ) ).|
|000008d0| 0a 09 09 09 09 72 65 74 | 75 72 6e 20 49 50 3b 0d |.....ret|urn IP;.|
|000008e0| 0a 09 09 7d 0d 0a 09 09 | 72 65 74 75 72 6e 20 4e |...}....|return N|
|000008f0| 6f 6e 65 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 73 69 6d |one;...}|.....sim|
|00000900| 75 6c 61 74 65 64 20 66 | 75 6e 63 74 69 6f 6e 20 |ulated f|unction |
|00000910| 54 72 79 49 6e 74 65 72 | 61 63 74 69 6f 6e 28 29 |TryInter|action()|
|00000920| 0d 0a 09 7b 0d 0a 09 09 | 6c 6f 63 61 6c 20 49 6e |...{....|local In|
|00000930| 74 65 72 61 63 74 50 6f | 69 6e 74 20 49 50 3b 0d |teractPo|int IP;.|
|00000940| 0a 0d 0a 09 09 49 50 20 | 3d 20 47 65 74 49 50 28 |.....IP |= GetIP(|
|00000950| 29 3b 0d 0a 09 09 69 66 | 20 28 20 21 49 50 20 29 |);....if| ( !IP )|
|00000960| 0d 0a 09 09 09 49 50 20 | 3d 20 44 50 6c 61 79 65 |.....IP |= DPlaye|
|00000970| 72 50 61 77 6e 28 50 61 | 77 6e 4f 77 6e 65 72 29 |rPawn(Pa|wnOwner)|
|00000980| 2e 49 6e 74 65 72 61 63 | 74 50 6f 69 6e 74 3b 0d |.Interac|tPoint;.|
|00000990| 0a 09 09 6c 6f 67 28 20 | 22 46 6f 75 6e 64 20 49 |...log( |"Found I|
|000009a0| 6e 74 65 72 61 63 74 50 | 6f 69 6e 74 22 40 49 50 |nteractP|oint"@IP|
|000009b0| 2c 20 27 49 6e 74 65 72 | 61 63 74 27 20 29 3b 0d |, 'Inter|act' );.|
|000009c0| 0a 0d 0a 09 09 69 66 20 | 28 20 28 44 4d 61 69 6e |.....if |( (DMain|
|000009d0| 66 72 61 6d 65 49 6e 74 | 65 72 61 63 74 50 6f 69 |frameInt|eractPoi|
|000009e0| 6e 74 28 49 50 29 3f 20 | 26 26 20 21 48 61 73 43 |nt(IP)? |&& !HasC|
|000009f0| 6f 64 65 46 6f 72 28 44 | 44 65 6c 61 79 65 64 49 |odeFor(D|DelayedI|
|00000a00| 6e 74 65 72 61 63 74 50 | 6f 69 6e 74 28 49 50 29 |nteractP|oint(IP)|
|00000a10| 29 29 20 7c 7c 20 28 21 | 44 4d 61 69 6e 66 72 61 |)) || (!|DMainfra|
|00000a20| 6d 65 49 6e 74 65 72 61 | 63 74 50 6f 69 6e 74 28 |meIntera|ctPoint(|
|00000a30| 49 50 29 20 26 26 20 48 | 61 73 43 6f 64 65 46 6f |IP) && H|asCodeFo|
|00000a40| 72 28 44 44 65 6c 61 79 | 65 64 49 6e 74 65 72 61 |r(DDelay|edIntera|
|00000a50| 63 74 50 6f 69 6e 74 28 | 49 50 29 29 29 20 29 0d |ctPoint(|IP))) ).|
|00000a60| 0a 09 09 7b 0d 0a 09 09 | 09 44 50 6c 61 79 65 72 |...{....|.DPlayer|
|00000a70| 50 61 77 6e 28 20 4f 77 | 6e 65 72 20 29 2e 49 6e |Pawn( Ow|ner ).In|
|00000a80| 74 65 72 61 63 74 28 20 | 49 50 20 29 3b 0d 0a 09 |teract( |IP );...|
|00000a90| 09 09 50 75 73 68 53 74 | 61 74 65 28 20 27 44 65 |..PushSt|ate( 'De|
|00000aa0| 63 6f 64 69 6e 67 27 20 | 29 3b 0d 0a 09 09 7d 0d |coding' |);....}.|
|00000ab0| 0a 09 09 65 6c 73 65 0d | 0a 09 09 09 50 75 73 68 |...else.|....Push|
|00000ac0| 53 74 61 74 65 28 20 27 | 44 65 63 6f 64 69 6e 67 |State( '|Decoding|
|00000ad0| 46 61 69 6c 75 72 65 27 | 20 29 3b 0d 0a 09 7d 0d |Failure'| );...}.|
|00000ae0| 0a 0d 0a 42 65 67 69 6e | 3a 0d 0a 09 54 72 79 49 |...Begin|:...TryI|
|00000af0| 6e 74 65 72 61 63 74 69 | 6f 6e 28 29 3b 0d 0a 09 |nteracti|on();...|
|00000b00| 50 6f 70 53 74 61 74 65 | 28 29 3b 0d 0a 7d 0d 0a |PopState|();..}..|
|00000b10| 0d 0a 73 69 6d 75 6c 61 | 74 65 64 20 73 74 61 74 |..simula|ted stat|
|00000b20| 65 20 46 69 72 65 4f 6e | 63 65 52 65 61 6c 0d 0a |e FireOn|ceReal..|
|00000b30| 7b 0d 0a 42 65 67 69 6e | 3a 0d 0a 09 50 75 73 68 |{..Begin|:...Push|
|00000b40| 53 74 61 74 65 28 27 41 | 74 74 65 6d 70 74 49 6e |State('A|ttemptIn|
|00000b50| 74 65 72 61 63 74 69 6f | 6e 27 29 3b 0d 0a 09 50 |teractio|n');...P|
|00000b60| 6f 70 53 74 61 74 65 28 | 29 3b 0d 0a 7d 0d 0a 0d |opState(|);..}...|
|00000b70| 0a 73 69 6d 75 6c 61 74 | 65 64 20 73 74 61 74 65 |.simulat|ed state|
|00000b80| 20 44 65 63 6f 64 69 6e | 67 0d 0a 7b 0d 0a 09 2f | Decodin|g..{.../|
|00000b90| 2f 74 68 65 79 20 70 61 | 74 69 65 6e 74 6c 79 20 |/they pa|tiently |
|00000ba0| 77 61 69 74 65 64 2e 20 | 74 68 65 79 20 63 61 6e |waited. |they can|
|00000bb0| 20 68 61 76 65 20 61 20 | 63 6f 6f 6b 69 65 2e 0d | have a |cookie..|
|00000bc0| 0a 09 73 69 6d 75 6c 61 | 74 65 64 20 66 75 6e 63 |..simula|ted func|
|00000bd0| 74 69 6f 6e 20 49 6e 74 | 65 72 61 63 74 69 6f 6e |tion Int|eraction|
|00000be0| 53 75 63 63 65 73 73 28 | 29 0d 0a 09 7b 0d 0a 09 |Success(|)...{...|
|00000bf0| 09 6c 6f 67 28 20 22 49 | 6e 74 65 72 61 63 74 69 |.log( "I|nteracti|
|00000c00| 6f 6e 20 73 75 63 63 65 | 73 73 20 77 69 74 68 20 |on succe|ss with |
|00000c10| 44 65 63 6f 64 65 72 22 | 2c 20 27 49 6e 74 65 72 |Decoder"|, 'Inter|
|00000c20| 61 63 74 27 20 29 3b 0d | 0a 09 09 4f 77 6e 65 72 |act' );.|...Owner|
|00000c30| 2e 50 6c 61 79 53 6f 75 | 6e 64 28 20 4e 6f 6e 65 |.PlaySou|nd( None|
|00000c40| 2c 20 53 4c 4f 54 5f 4d | 69 73 63 20 29 3b 0d 0a |, SLOT_M|isc );..|
|00000c50| 09 09 69 66 20 28 20 44 | 4d 61 69 6e 46 72 61 6d |..if ( D|MainFram|
|00000c60| 65 49 6e 74 65 72 61 63 | 74 50 6f 69 6e 74 28 20 |eInterac|tPoint( |
|00000c70| 47 65 74 49 50 28 29 20 | 29 3f 20 29 0d 0a 09 09 |GetIP() |)? )....|
|00000c80| 09 4e 65 77 41 63 63 65 | 73 73 43 6f 64 65 28 20 |.NewAcce|ssCode( |
|00000c90| 44 4d 61 69 6e 46 72 61 | 6d 65 49 6e 74 65 72 61 |DMainFra|meIntera|
|00000ca0| 63 74 50 6f 69 6e 74 28 | 20 47 65 74 49 50 28 29 |ctPoint(| GetIP()|
|00000cb0| 20 29 2e 43 6f 64 65 20 | 29 3b 0d 0a 0d 0a 09 09 | ).Code |);......|
|00000cc0| 44 50 6c 61 79 65 72 50 | 61 77 6e 28 20 50 61 77 |DPlayerP|awn( Paw|
|00000cd0| 6e 4f 77 6e 65 72 20 29 | 2e 62 46 69 72 65 20 3d |nOwner )|.bFire =|
|00000ce0| 20 30 3b 0d 0a 09 09 44 | 50 6c 61 79 65 72 50 61 | 0;....D|PlayerPa|
|00000cf0| 77 6e 28 20 50 61 77 6e | 4f 77 6e 65 72 20 29 2e |wn( Pawn|Owner ).|
|00000d00| 62 41 6c 74 46 69 72 65 | 20 3d 20 30 3b 0d 0a 09 |bAltFire| = 0;...|
|00000d10| 09 44 50 6c 61 79 65 72 | 50 61 77 6e 28 20 50 61 |.DPlayer|Pawn( Pa|
|00000d20| 77 6e 4f 77 6e 65 72 20 | 29 2e 62 49 6e 74 65 72 |wnOwner |).bInter|
|00000d30| 61 63 74 20 3d 20 30 3b | 0d 0a 09 09 50 6f 70 53 |act = 0;|....PopS|
|00000d40| 74 61 74 65 28 29 3b 0d | 0a 09 7d 0d 0a 09 2f 2f |tate();.|..}...//|
|00000d50| 69 66 20 77 65 20 67 6f | 74 20 68 65 72 65 2c 20 |if we go|t here, |
|00000d60| 74 68 65 6e 20 77 65 20 | 66 61 69 6c 65 64 20 62 |then we |failed b|
|00000d70| 65 63 61 75 73 65 20 74 | 68 65 20 75 73 65 72 20 |ecause t|he user |
|00000d80| 6c 6f 6f 6b 65 64 20 61 | 77 61 79 20 6f 72 20 67 |looked a|way or g|
|00000d90| 61 76 65 20 75 70 0d 0a | 09 73 69 6d 75 6c 61 74 |ave up..|.simulat|
|00000da0| 65 64 20 66 75 6e 63 74 | 69 6f 6e 20 49 6e 74 65 |ed funct|ion Inte|
|00000db0| 72 61 63 74 69 6f 6e 46 | 61 69 6c 75 72 65 28 29 |ractionF|ailure()|
|00000dc0| 0d 0a 09 7b 0d 0a 09 09 | 4f 77 6e 65 72 2e 50 6c |...{....|Owner.Pl|
|00000dd0| 61 79 53 6f 75 6e 64 28 | 20 4e 6f 6e 65 2c 20 53 |aySound(| None, S|
|00000de0| 4c 4f 54 5f 4d 69 73 63 | 20 29 3b 0d 0a 09 09 44 |LOT_Misc| );....D|
|00000df0| 50 6c 61 79 65 72 50 61 | 77 6e 28 20 50 61 77 6e |PlayerPa|wn( Pawn|
|00000e00| 4f 77 6e 65 72 20 29 2e | 62 46 69 72 65 20 3d 20 |Owner ).|bFire = |
|00000e10| 30 3b 0d 0a 09 09 44 50 | 6c 61 79 65 72 50 61 77 |0;....DP|layerPaw|
|00000e20| 6e 28 20 50 61 77 6e 4f | 77 6e 65 72 20 29 2e 62 |n( PawnO|wner ).b|
|00000e30| 41 6c 74 46 69 72 65 20 | 3d 20 30 3b 0d 0a 09 09 |AltFire |= 0;....|
|00000e40| 44 50 6c 61 79 65 72 50 | 61 77 6e 28 20 50 61 77 |DPlayerP|awn( Paw|
|00000e50| 6e 4f 77 6e 65 72 20 29 | 2e 62 49 6e 74 65 72 61 |nOwner )|.bIntera|
|00000e60| 63 74 20 3d 20 30 3b 0d | 0a 09 09 43 6f 64 65 53 |ct = 0;.|...CodeS|
|00000e70| 74 72 69 6e 67 20 3d 20 | 22 22 3b 20 2f 2f 75 6e |tring = |""; //un|
|00000e80| 64 6f 20 61 63 63 65 73 | 73 20 63 6f 64 65 0d 0a |do acces|s code..|
|00000e90| 09 09 50 6f 70 53 74 61 | 74 65 28 29 3b 0d 0a 09 |..PopSta|te();...|
|00000ea0| 7d 0d 0a 0d 0a 42 65 67 | 69 6e 3a 0d 0a 09 6c 6f |}....Beg|in:...lo|
|00000eb0| 67 28 20 22 44 65 63 6f | 64 69 6e 67 20 69 6e 74 |g( "Deco|ding int|
|00000ec0| 65 72 61 63 74 20 70 6f | 69 6e 74 22 40 47 65 74 |eract po|int"@Get|
|00000ed0| 49 50 28 29 2c 20 27 49 | 6e 74 65 72 61 63 74 27 |IP(), 'I|nteract'|
|00000ee0| 20 29 3b 0d 0a 09 50 6c | 61 79 41 6e 69 6d 28 20 | );...Pl|ayAnim( |
|00000ef0| 27 42 75 74 74 6f 6e 50 | 75 73 68 5f 41 27 2c 20 |'ButtonP|ush_A', |
|00000f00| 31 2e 30 20 29 3b 0d 0a | 09 46 69 6e 69 73 68 41 |1.0 );..|.FinishA|
|00000f10| 6e 69 6d 28 29 3b 0d 0a | 09 50 6c 61 79 41 6e 69 |nim();..|.PlayAni|
|00000f20| 6d 28 20 27 42 75 74 74 | 6f 6e 50 75 73 68 5f 42 |m( 'Butt|onPush_B|
|00000f30| 27 2c 20 31 2e 30 20 29 | 3b 0d 0a 09 46 69 6e 69 |', 1.0 )|;...Fini|
|00000f40| 73 68 41 6e 69 6d 28 29 | 3b 0d 0a 0d 0a 09 2f 2f |shAnim()|;.....//|
|00000f50| 6c 6f 6f 70 20 74 68 65 | 20 65 66 66 65 63 74 73 |loop the| effects|
|00000f60| 0d 0a 09 4c 6f 6f 70 41 | 6e 69 6d 28 20 27 42 75 |...LoopA|nim( 'Bu|
|00000f70| 74 74 6f 6e 48 6f 6c 64 | 27 2c 20 31 2e 30 20 29 |ttonHold|', 1.0 )|
|00000f80| 3b 0d 0a 09 77 68 69 6c | 65 28 20 50 6c 61 79 65 |;...whil|e( Playe|
|00000f90| 72 53 74 69 6c 6c 46 69 | 72 69 6e 67 28 29 20 29 |rStillFi|ring() )|
|00000fa0| 0d 0a 09 7b 0d 0a 09 09 | 4f 77 6e 65 72 2e 50 6c |...{....|Owner.Pl|
|00000fb0| 61 79 53 6f 75 6e 64 28 | 20 44 65 63 6f 64 69 6e |aySound(| Decodin|
|00000fc0| 67 53 6f 75 6e 64 2c 20 | 53 4c 4f 54 5f 4d 69 73 |gSound, |SLOT_Mis|
|00000fd0| 63 2c 20 30 2e 32 35 2c | 20 66 61 6c 73 65 2c 20 |c, 0.25,| false, |
|00000fe0| 32 35 35 20 29 3b 0d 0a | 09 09 53 6c 65 65 70 28 |255 );..|..Sleep(|
|00000ff0| 20 47 65 74 53 6f 75 6e | 64 44 75 72 61 74 69 6f | GetSoun|dDuratio|
|00001000| 6e 28 20 44 65 63 6f 64 | 69 6e 67 53 6f 75 6e 64 |n( Decod|ingSound|
|00001010| 20 29 20 2a 20 4c 65 76 | 65 6c 2e 54 69 6d 65 44 | ) * Lev|el.TimeD|
|00001020| 69 6c 61 74 69 6f 6e 20 | 29 3b 0d 0a 09 7d 0d 0a |ilation |);...}..|
|00001030| 0d 0a 09 4f 77 6e 65 72 | 2e 50 6c 61 79 53 6f 75 |...Owner|.PlaySou|
|00001040| 6e 64 28 20 4e 6f 6e 65 | 2c 20 53 4c 4f 54 5f 4d |nd( None|, SLOT_M|
|00001050| 69 73 63 20 29 3b 0d 0a | 09 2f 2f 69 66 20 77 65 |isc );..|.//if we|
|00001060| 20 62 72 6f 6b 65 20 6f | 75 74 20 62 65 63 61 75 | broke o|ut becau|
|00001070| 73 65 20 74 68 65 20 75 | 73 65 72 20 73 74 6f 70 |se the u|ser stop|
|00001080| 70 65 64 20 70 72 65 73 | 73 69 6e 67 20 74 68 65 |ped pres|sing the|
|00001090| 20 62 75 74 74 6f 6e 0d | 0a 09 2f 2f 74 68 65 6e | button.|..//then|
|000010a0| 20 6f 62 76 69 6f 75 73 | 6c 79 20 68 65 20 64 69 | obvious|ly he di|
|000010b0| 64 6e 27 74 20 77 61 69 | 74 20 6c 6f 6e 67 20 65 |dn't wai|t long e|
|000010c0| 6e 6f 75 67 68 20 66 6f | 72 20 74 68 65 20 73 75 |nough fo|r the su|
|000010d0| 63 63 65 73 73 66 75 6c | 20 69 6e 74 65 72 61 63 |ccessful| interac|
|000010e0| 74 69 6f 6e 0d 0a 09 2f | 2f 73 6f 20 6e 6f 74 69 |tion.../|/so noti|
|000010f0| 66 79 20 61 62 6f 75 74 | 20 74 68 65 20 66 61 69 |fy about| the fai|
|00001100| 6c 75 72 65 0d 0a 09 69 | 66 20 28 20 47 65 74 49 |lure...i|f ( GetI|
|00001110| 50 28 29 3f 20 29 0d 0a | 09 09 47 65 74 49 50 28 |P()? )..|..GetIP(|
|00001120| 29 2e 49 6e 74 65 72 61 | 63 74 69 6f 6e 46 61 69 |).Intera|ctionFai|
|00001130| 6c 75 72 65 28 20 50 61 | 77 6e 4f 77 6e 65 72 20 |lure( Pa|wnOwner |
|00001140| 29 3b 0d 0a 09 50 6f 70 | 53 74 61 74 65 28 29 3b |);...Pop|State();|
|00001150| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00001160| 20 66 75 6e 63 74 69 6f | 6e 20 53 65 74 50 6c 61 | functio|n SetPla|
|00001170| 79 65 72 46 69 72 69 6e | 67 41 6e 69 6d 28 20 69 |yerFirin|gAnim( i|
|00001180| 6e 74 20 46 69 72 69 6e | 67 4d 6f 64 65 2c 20 62 |nt Firin|gMode, b|
|00001190| 6f 6f 6c 20 62 56 61 6c | 75 65 20 29 3b 0d 0a 0d |ool bVal|ue );...|
|000011a0| 0a 73 69 6d 75 6c 61 74 | 65 64 20 73 74 61 74 65 |.simulat|ed state|
|000011b0| 20 44 65 63 6f 64 69 6e | 67 46 61 69 6c 75 72 65 | Decodin|gFailure|
|000011c0| 0d 0a 7b 0d 0a 42 65 67 | 69 6e 3a 0d 0a 09 6c 6f |..{..Beg|in:...lo|
|000011d0| 67 28 20 22 46 61 69 6c | 65 64 20 74 6f 20 66 69 |g( "Fail|ed to fi|
|000011e0| 6e 64 20 73 6f 6d 65 74 | 68 69 6e 67 20 74 6f 20 |nd somet|hing to |
|000011f0| 64 65 63 6f 64 65 22 2c | 20 27 49 6e 74 65 72 61 |decode",| 'Intera|
|00001200| 63 74 27 20 29 3b 0d 0a | 09 4f 77 6e 65 72 2e 50 |ct' );..|.Owner.P|
|00001210| 6c 61 79 53 6f 75 6e 64 | 28 20 46 61 69 6c 65 64 |laySound|( Failed|
|00001220| 53 6f 75 6e 64 2c 20 53 | 4c 4f 54 5f 4d 69 73 63 |Sound, S|LOT_Misc|
|00001230| 2c 20 30 2e 32 35 2c 20 | 66 61 6c 73 65 2c 20 32 |, 0.25, |false, 2|
|00001240| 35 35 20 29 3b 0d 0a 09 | 53 6c 65 65 70 28 20 47 |55 );...|Sleep( G|
|00001250| 65 74 53 6f 75 6e 64 44 | 75 72 61 74 69 6f 6e 28 |etSoundD|uration(|
|00001260| 20 46 61 69 6c 65 64 53 | 6f 75 6e 64 20 29 20 2a | FailedS|ound ) *|
|00001270| 20 4c 65 76 65 6c 2e 54 | 69 6d 65 44 69 6c 61 74 | Level.T|imeDilat|
|00001280| 69 6f 6e 20 29 3b 0d 0a | 09 50 6f 70 53 74 61 74 |ion );..|.PopStat|
|00001290| 65 28 29 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |e();..}.|...simul|
|000012a0| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 62 6f |ated fun|ction bo|
|000012b0| 6f 6c 20 48 61 73 43 6f | 64 65 46 6f 72 28 20 44 |ol HasCo|deFor( D|
|000012c0| 44 65 6c 61 79 65 64 49 | 6e 74 65 72 61 63 74 50 |DelayedI|nteractP|
|000012d0| 6f 69 6e 74 20 49 50 20 | 29 0d 0a 7b 0d 0a 09 6c |oint IP |)..{...l|
|000012e0| 6f 63 61 6c 20 69 6e 74 | 20 69 3b 0d 0a 0d 0a 09 |ocal int| i;.....|
|000012f0| 69 66 20 28 20 44 4d 61 | 69 6e 66 72 61 6d 65 49 |if ( DMa|inframeI|
|00001300| 6e 74 65 72 61 63 74 50 | 6f 69 6e 74 28 49 50 29 |nteractP|oint(IP)|
|00001310| 3f 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 20 |? )...{.|...if ( |
|00001320| 21 44 4d 61 69 6e 66 72 | 61 6d 65 49 6e 74 65 72 |!DMainfr|ameInter|
|00001330| 61 63 74 50 6f 69 6e 74 | 28 49 50 29 2e 43 6f 64 |actPoint|(IP).Cod|
|00001340| 65 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 57 61 72 |e )....{|.....War|
|00001350| 6e 28 22 4d 61 69 6e 66 | 72 61 6d 65 20 49 50 22 |n("Mainf|rame IP"|
|00001360| 40 49 50 40 22 64 6f 65 | 73 6e 27 74 20 68 61 76 |@IP@"doe|sn't hav|
|00001370| 65 20 61 6e 79 20 63 6f | 64 65 73 3f 22 29 3b 0d |e any co|des?");.|
|00001380| 0a 09 09 09 72 65 74 75 | 72 6e 20 54 52 55 45 3b |....retu|rn TRUE;|
|00001390| 0d 0a 09 09 7d 0d 0a 0d | 0a 09 09 66 6f 72 20 28 |....}...|...for (|
|000013a0| 20 69 20 3d 20 30 3b 20 | 69 20 3c 20 43 6f 64 65 | i = 0; |i < Code|
|000013b0| 73 2e 4c 65 6e 67 74 68 | 3b 20 69 2b 2b 20 29 0d |s.Length|; i++ ).|
|000013c0| 0a 09 09 09 69 66 20 28 | 20 43 6f 64 65 73 5b 69 |....if (| Codes[i|
|000013d0| 5d 20 3d 3d 20 44 4d 61 | 69 6e 66 72 61 6d 65 49 |] == DMa|inframeI|
|000013e0| 6e 74 65 72 61 63 74 50 | 6f 69 6e 74 28 49 50 29 |nteractP|oint(IP)|
|000013f0| 2e 43 6f 64 65 20 29 0d | 0a 09 09 09 09 72 65 74 |.Code ).|.....ret|
|00001400| 75 72 6e 20 54 52 55 45 | 3b 09 09 2f 2f 20 61 6c |urn TRUE|;..// al|
|00001410| 72 65 61 64 79 20 68 61 | 76 65 20 63 6f 64 65 0d |ready ha|ve code.|
|00001420| 0a 0d 0a 09 09 72 65 74 | 75 72 6e 20 46 41 4c 53 |.....ret|urn FALS|
|00001430| 45 3b 09 2f 2f 20 6e 65 | 65 64 20 74 6f 20 67 65 |E;.// ne|ed to ge|
|00001440| 74 20 74 68 69 73 20 63 | 6f 64 65 0d 0a 09 7d 0d |t this c|ode...}.|
|00001450| 0a 09 65 6c 73 65 0d 0a | 09 7b 0d 0a 09 09 69 66 |..else..|.{....if|
|00001460| 20 28 20 21 49 50 2e 52 | 65 71 75 69 72 65 64 43 | ( !IP.R|equiredC|
|00001470| 6f 64 65 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 57 |ode )...|.{.....W|
|00001480| 61 72 6e 28 22 49 50 22 | 40 49 50 40 22 64 6f 65 |arn("IP"|@IP@"doe|
|00001490| 73 6e 27 74 20 68 61 76 | 65 20 61 20 72 65 71 75 |sn't hav|e a requ|
|000014a0| 69 72 65 64 20 63 6f 64 | 65 3f 22 29 3b 0d 0a 09 |ired cod|e?");...|
|000014b0| 09 09 72 65 74 75 72 6e | 20 46 41 4c 53 45 3b 0d |..return| FALSE;.|
|000014c0| 0a 09 09 7d 0d 0a 0d 0a | 09 09 66 6f 72 20 28 20 |...}....|..for ( |
|000014d0| 69 20 3d 20 30 3b 20 69 | 20 3c 20 43 6f 64 65 73 |i = 0; i| < Codes|
|000014e0| 2e 4c 65 6e 67 74 68 3b | 20 69 2b 2b 20 29 0d 0a |.Length;| i++ )..|
|000014f0| 09 09 09 69 66 20 28 20 | 43 6f 64 65 73 5b 69 5d |...if ( |Codes[i]|
|00001500| 20 3d 3d 20 49 50 2e 52 | 65 71 75 69 72 65 64 43 | == IP.R|equiredC|
|00001510| 6f 64 65 20 29 0d 0a 09 | 09 09 09 72 65 74 75 72 |ode )...|...retur|
|00001520| 6e 20 54 52 55 45 3b 0d | 0a 0d 0a 09 09 72 65 74 |n TRUE;.|.....ret|
|00001530| 75 72 6e 20 46 41 4c 53 | 45 3b 0d 0a 09 7d 0d 0a |urn FALS|E;...}..|
|00001540| 7d 0d 0a 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |}......s|imulated|
|00001550| 20 66 75 6e 63 74 69 6f | 6e 20 4e 65 77 41 63 63 | functio|n NewAcc|
|00001560| 65 73 73 43 6f 64 65 28 | 20 6e 61 6d 65 20 43 6f |essCode(| name Co|
|00001570| 64 65 20 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |de )..{.|..local |
|00001580| 69 6e 74 20 69 3b 0d 0a | 0d 0a 09 6c 6f 67 28 20 |int i;..|...log( |
|00001590| 22 47 65 74 74 69 6e 67 | 20 6e 65 77 20 63 6f 64 |"Getting| new cod|
|000015a0| 65 3a 20 22 24 43 6f 64 | 65 2c 20 27 47 61 6d 65 |e: "$Cod|e, 'Game|
|000015b0| 4c 6f 67 27 20 29 3b 0d | 0a 09 4f 77 6e 65 72 2e |Log' );.|..Owner.|
|000015c0| 50 6c 61 79 53 6f 75 6e | 64 28 20 4e 65 77 43 6f |PlaySoun|d( NewCo|
|000015d0| 64 65 53 6f 75 6e 64 2c | 20 53 4c 4f 54 5f 4d 69 |deSound,| SLOT_Mi|
|000015e0| 73 63 2c 20 30 2e 32 35 | 20 29 3b 0d 0a 0d 0a 09 |sc, 0.25| );.....|
|000015f0| 69 66 20 28 20 52 6f 6c | 65 20 3d 3d 20 52 4f 4c |if ( Rol|e == ROL|
|00001600| 45 5f 41 75 74 68 6f 72 | 69 74 79 20 29 0d 0a 09 |E_Author|ity )...|
|00001610| 09 44 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |.DPlayer|Replicat|
|00001620| 69 6f 6e 49 6e 66 6f 28 | 50 6c 61 79 65 72 50 61 |ionInfo(|PlayerPa|
|00001630| 77 6e 28 4f 77 6e 65 72 | 29 2e 50 6c 61 79 65 72 |wn(Owner|).Player|
|00001640| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 29 |Replicat|ionInfo)|
|00001650| 2e 62 48 61 73 43 6f 64 | 65 73 20 3d 20 74 72 75 |.bHasCod|es = tru|
|00001660| 65 3b 0d 0a 0d 0a 09 2f | 2f 20 63 68 65 63 6b 20 |e;...../|/ check |
|00001670| 69 66 20 77 65 20 61 6c | 72 65 61 64 79 20 68 61 |if we al|ready ha|
|00001680| 76 65 20 74 68 69 73 20 | 63 6f 64 65 0d 0a 09 66 |ve this |code...f|
|00001690| 6f 72 20 28 20 69 20 3d | 20 30 3b 20 69 20 3c 20 |or ( i =| 0; i < |
|000016a0| 43 6f 64 65 73 2e 4c 65 | 6e 67 74 68 3b 20 69 2b |Codes.Le|ngth; i+|
|000016b0| 2b 20 29 0d 0a 09 09 69 | 66 20 28 20 43 6f 64 65 |+ )....i|f ( Code|
|000016c0| 73 5b 69 5d 20 3d 3d 20 | 43 6f 64 65 20 29 0d 0a |s[i] == |Code )..|
|000016d0| 09 09 09 72 65 74 75 72 | 6e 3b 0d 0a 0d 0a 09 2f |...retur|n;...../|
|000016e0| 2f 20 69 6e 73 65 72 74 | 20 74 68 65 20 63 6f 64 |/ insert| the cod|
|000016f0| 65 0d 0a 09 43 6f 64 65 | 73 5b 43 6f 64 65 73 2e |e...Code|s[Codes.|
|00001700| 4c 65 6e 67 74 68 5d 20 | 3d 20 43 6f 64 65 3b 0d |Length] |= Code;.|
|00001710| 0a 09 6c 6f 67 28 20 22 | 49 6e 73 65 72 74 65 64 |..log( "|Inserted|
|00001720| 20 6e 65 77 20 63 6f 64 | 65 2c 20 43 6f 64 65 73 | new cod|e, Codes|
|00001730| 2e 4c 65 6e 67 74 68 3a | 22 40 43 6f 64 65 73 2e |.Length:|"@Codes.|
|00001740| 4c 65 6e 67 74 68 40 43 | 6f 64 65 73 5b 43 6f 64 |Length@C|odes[Cod|
|00001750| 65 73 2e 4c 65 6e 67 74 | 68 2d 31 5d 2c 20 27 47 |es.Lengt|h-1], 'G|
|00001760| 61 6d 65 4c 6f 67 27 20 | 29 3b 0d 0a 7d 0d 0a 0d |ameLog' |);..}...|
|00001770| 0a 2f 2f 20 53 63 72 69 | 70 74 65 64 54 65 78 74 |.// Scri|ptedText|
|00001780| 75 72 65 20 64 69 73 70 | 6c 61 79 0d 0a 73 69 6d |ure disp|lay..sim|
|00001790| 75 6c 61 74 65 64 20 65 | 76 65 6e 74 20 52 65 6e |ulated e|vent Ren|
|000017a0| 64 65 72 4f 76 65 72 6c | 61 79 73 28 20 63 61 6e |derOverl|ays( can|
|000017b0| 76 61 73 20 43 61 6e 76 | 61 73 20 29 0d 0a 7b 0d |vas Canv|as )..{.|
|000017c0| 0a 09 69 66 28 20 21 44 | 69 73 70 6c 61 79 20 29 |..if( !D|isplay )|
|000017d0| 0d 0a 09 7b 0d 0a 09 09 | 44 69 73 70 6c 61 79 20 |...{....|Display |
|000017e0| 3d 20 6e 65 77 28 4f 75 | 74 65 72 29 63 6c 61 73 |= new(Ou|ter)clas|
|000017f0| 73 27 53 63 72 69 70 74 | 65 64 54 65 78 74 75 72 |s'Script|edTextur|
|00001800| 65 27 3b 0d 0a 09 09 44 | 69 73 70 6c 61 79 2e 43 |e';....D|isplay.C|
|00001810| 6c 69 65 6e 74 20 3d 20 | 53 65 6c 66 3b 0d 0a 09 |lient = |Self;...|
|00001820| 09 44 69 73 70 6c 61 79 | 2e 53 65 74 53 69 7a 65 |.Display|.SetSize|
|00001830| 28 31 32 38 2c 33 32 29 | 3b 0d 0a 09 09 53 6b 69 |(128,32)|;....Ski|
|00001840| 6e 73 5b 30 5d 20 3d 20 | 54 65 78 74 75 72 65 27 |ns[0] = |Texture'|
|00001850| 44 57 65 61 70 53 6b 69 | 6e 73 2e 68 61 6e 64 73 |DWeapSki|ns.hands|
|00001860| 2e 48 54 65 63 68 69 65 | 27 3b 20 2f 2f 47 65 74 |.HTechie|'; //Get|
|00001870| 53 6b 69 6e 28 30 29 3b | 0d 0a 09 09 53 6b 69 6e |Skin(0);|....Skin|
|00001880| 73 5b 31 5d 20 3d 20 47 | 65 74 53 6b 69 6e 28 31 |s[1] = G|etSkin(1|
|00001890| 29 3b 0d 0a 09 09 53 6b | 69 6e 73 5b 32 5d 20 3d |);....Sk|ins[2] =|
|000018a0| 20 44 69 73 70 6c 61 79 | 3b 0d 0a 09 7d 0d 0a 09 | Display|;...}...|
|000018b0| 44 69 73 70 6c 61 79 2e | 52 65 76 69 73 69 6f 6e |Display.|Revision|
|000018c0| 2b 2b 3b 0d 0a 20 20 20 | 20 53 75 70 65 72 2e 52 |++;.. | Super.R|
|000018d0| 65 6e 64 65 72 4f 76 65 | 72 6c 61 79 73 28 43 61 |enderOve|rlays(Ca|
|000018e0| 6e 76 61 73 29 3b 0d 0a | 7d 0d 0a 0d 0a 73 69 6d |nvas);..|}....sim|
|000018f0| 75 6c 61 74 65 64 20 65 | 76 65 6e 74 20 52 65 6e |ulated e|vent Ren|
|00001900| 64 65 72 54 65 78 74 75 | 72 65 28 53 63 72 69 70 |derTextu|re(Scrip|
|00001910| 74 65 64 54 65 78 74 75 | 72 65 20 54 65 78 29 0d |tedTextu|re Tex).|
|00001920| 0a 7b 0d 0a 20 20 20 20 | 6c 6f 63 61 6c 20 43 6f |.{.. |local Co|
|00001930| 6c 6f 72 20 43 3b 0d 0a | 09 6c 6f 63 61 6c 20 73 |lor C;..|.local s|
|00001940| 74 72 69 6e 67 20 52 61 | 6e 64 6f 6d 53 74 72 69 |tring Ra|ndomStri|
|00001950| 6e 67 2c 20 44 72 61 77 | 53 74 72 69 6e 67 3b 0d |ng, Draw|String;.|
|00001960| 0a 09 6c 6f 63 61 6c 20 | 44 44 65 6c 61 79 65 64 |..local |DDelayed|
|00001970| 49 6e 74 65 72 61 63 74 | 50 6f 69 6e 74 20 49 50 |Interact|Point IP|
|00001980| 3b 0d 0a 0d 0a 09 6c 6f | 63 61 6c 20 66 6c 6f 61 |;.....lo|cal floa|
|00001990| 74 20 50 72 6f 67 72 65 | 73 73 3b 0d 0a 09 6c 6f |t Progre|ss;...lo|
|000019a0| 63 61 6c 20 69 6e 74 20 | 4c 65 6e 67 74 68 2c 20 |cal int |Length, |
|000019b0| 50 72 6f 67 72 65 73 73 | 44 69 67 69 74 73 2c 20 |Progress|Digits, |
|000019c0| 41 6e 74 69 50 72 6f 67 | 72 65 73 73 44 69 67 69 |AntiProg|ressDigi|
|000019d0| 74 73 3b 0d 0a 0d 0a 09 | 4c 65 6e 67 74 68 20 3d |ts;.....|Length =|
|000019e0| 20 36 3b 0d 0a 0d 0a 09 | 49 50 20 3d 20 47 65 74 | 6;.....|IP = Get|
|000019f0| 49 50 28 29 3b 0d 0a 0d | 0a 09 69 66 20 28 20 49 |IP();...|..if ( I|
|00001a00| 50 3f 20 26 26 20 49 73 | 49 6e 53 74 61 74 65 28 |P? && Is|InState(|
|00001a10| 27 44 65 63 6f 64 69 6e | 67 27 29 20 29 0d 0a 20 |'Decodin|g') ).. |
|00001a20| 20 20 20 7b 0d 0a 09 09 | 50 72 6f 67 72 65 73 73 | {....|Progress|
|00001a30| 20 3d 20 28 20 49 50 2e | 52 65 71 75 69 72 65 64 | = ( IP.|Required|
|00001a40| 49 6e 74 65 72 61 63 74 | 54 69 6d 65 20 2d 20 49 |Interact|Time - I|
|00001a50| 50 2e 4c 61 74 65 6e 74 | 46 6c 6f 61 74 20 29 20 |P.Latent|Float ) |
|00001a60| 2f 20 46 4d 61 78 28 20 | 30 2e 31 2c 20 49 50 2e |/ FMax( |0.1, IP.|
|00001a70| 52 65 71 75 69 72 65 64 | 49 6e 74 65 72 61 63 74 |Required|Interact|
|00001a80| 54 69 6d 65 20 29 3b 0d | 0a 09 09 77 68 69 6c 65 |Time );.|...while|
|00001a90| 28 20 4c 65 6e 28 43 6f | 64 65 53 74 72 69 6e 67 |( Len(Co|deString|
|00001aa0| 29 20 3c 20 32 2a 4c 65 | 6e 67 74 68 20 29 0d 0a |) < 2*Le|ngth )..|
|00001ab0| 09 09 09 43 6f 64 65 53 | 74 72 69 6e 67 20 3d 20 |...CodeS|tring = |
|00001ac0| 52 61 6e 64 28 39 29 40 | 43 6f 64 65 53 74 72 69 |Rand(9)@|CodeStri|
|00001ad0| 6e 67 3b 0d 0a 0d 0a 09 | 09 77 68 69 6c 65 28 20 |ng;.....|.while( |
|00001ae0| 4c 65 6e 28 52 61 6e 64 | 6f 6d 53 74 72 69 6e 67 |Len(Rand|omString|
|00001af0| 29 20 3c 20 32 2a 4c 65 | 6e 67 74 68 20 29 0d 0a |) < 2*Le|ngth )..|
|00001b00| 09 09 09 52 61 6e 64 6f | 6d 53 74 72 69 6e 67 20 |...Rando|mString |
|00001b10| 3d 20 52 61 6e 64 28 39 | 29 40 52 61 6e 64 6f 6d |= Rand(9|)@Random|
|00001b20| 53 74 72 69 6e 67 3b 0d | 0a 20 20 20 20 7d 0d 0a |String;.|. }..|
|00001b30| 20 20 20 20 65 6c 73 65 | 0d 0a 20 20 20 20 7b 0d | else|.. {.|
|00001b40| 0a 09 09 50 72 6f 67 72 | 65 73 73 20 3d 20 31 3b |...Progr|ess = 1;|
|00001b50| 0d 0a 09 7d 0d 0a 09 50 | 72 6f 67 72 65 73 73 44 |...}...P|rogressD|
|00001b60| 69 67 69 74 73 20 3d 20 | 50 72 6f 67 72 65 73 73 |igits = |Progress|
|00001b70| 20 2a 20 4c 65 6e 67 74 | 68 3b 0d 0a 09 41 6e 74 | * Lengt|h;...Ant|
|00001b80| 69 50 72 6f 67 72 65 73 | 73 44 69 67 69 74 73 20 |iProgres|sDigits |
|00001b90| 3d 20 4c 65 6e 67 74 68 | 20 2d 20 50 72 6f 67 72 |= Length| - Progr|
|00001ba0| 65 73 73 44 69 67 69 74 | 73 3b 0d 0a 09 44 72 61 |essDigit|s;...Dra|
|00001bb0| 77 53 74 72 69 6e 67 20 | 3d 20 4c 65 66 74 28 20 |wString |= Left( |
|00001bc0| 52 61 6e 64 6f 6d 53 74 | 72 69 6e 67 2c 20 32 2a |RandomSt|ring, 2*|
|00001bd0| 41 6e 74 69 50 72 6f 67 | 72 65 73 73 44 69 67 69 |AntiProg|ressDigi|
|00001be0| 74 73 20 29 20 24 20 52 | 69 67 68 74 28 20 43 6f |ts ) $ R|ight( Co|
|00001bf0| 64 65 53 74 72 69 6e 67 | 2c 20 32 2a 50 72 6f 67 |deString|, 2*Prog|
|00001c00| 72 65 73 73 44 69 67 69 | 74 73 20 29 3b 0d 0a 09 |ressDigi|ts );...|
|00001c10| 43 2e 52 20 3d 20 30 3b | 09 43 2e 47 20 3d 20 30 |C.R = 0;|.C.G = 0|
|00001c20| 3b 09 43 2e 42 20 3d 20 | 30 3b 20 43 2e 41 20 3d |;.C.B = |0; C.A =|
|00001c30| 20 31 32 38 3b 0d 0a 09 | 54 65 78 2e 44 72 61 77 | 128;...|Tex.Draw|
|00001c40| 54 65 78 74 28 20 38 2b | 32 2c 20 36 2b 32 2c 20 |Text( 8+|2, 6+2, |
|00001c50| 44 72 61 77 53 74 72 69 | 6e 67 2c 20 46 6f 6e 74 |DrawStri|ng, Font|
|00001c60| 27 4f 63 72 41 32 30 27 | 2c 20 43 20 29 3b 0d 0a |'OcrA20'|, C );..|
|00001c70| 09 43 2e 52 20 3d 20 32 | 35 35 3b 09 43 2e 47 20 |.C.R = 2|55;.C.G |
|00001c80| 3d 20 32 35 35 3b 09 43 | 2e 42 20 3d 20 32 35 35 |= 255;.C|.B = 255|
|00001c90| 3b 20 43 2e 41 20 3d 20 | 31 32 38 3b 0d 0a 09 54 |; C.A = |128;...T|
|00001ca0| 65 78 2e 44 72 61 77 54 | 65 78 74 28 20 38 2c 20 |ex.DrawT|ext( 8, |
|00001cb0| 36 2c 20 44 72 61 77 53 | 74 72 69 6e 67 2c 20 46 |6, DrawS|tring, F|
|00001cc0| 6f 6e 74 27 4f 63 72 41 | 32 30 27 2c 20 43 20 29 |ont'OcrA|20', C )|
|00001cd0| 3b 0d 0a 7d 0d 0a 0d 0a | 2f 2f 20 63 6c 65 61 72 |;..}....|// clear|
|00001ce0| 20 63 6f 64 65 20 64 65 | 74 61 69 6c 73 2e 0d 0a | code de|tails...|
|00001cf0| 66 75 6e 63 74 69 6f 6e | 20 52 65 73 74 6f 63 6b |function| Restock|
|00001d00| 28 29 0d 0a 7b 0d 0a 09 | 69 66 20 28 20 52 6f 6c |()..{...|if ( Rol|
|00001d10| 65 20 3d 3d 20 52 4f 4c | 45 5f 41 75 74 68 6f 72 |e == ROL|E_Author|
|00001d20| 69 74 79 20 29 0d 0a 09 | 09 44 50 6c 61 79 65 72 |ity )...|.DPlayer|
|00001d30| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 28 |Replicat|ionInfo(|
|00001d40| 50 6c 61 79 65 72 50 61 | 77 6e 28 4f 77 6e 65 72 |PlayerPa|wn(Owner|
|00001d50| 29 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |).Player|Replicat|
|00001d60| 69 6f 6e 49 6e 66 6f 29 | 2e 62 48 61 73 43 6f 64 |ionInfo)|.bHasCod|
|00001d70| 65 73 20 3d 20 74 72 75 | 65 3b 0d 0a 09 43 6f 64 |es = tru|e;...Cod|
|00001d80| 65 73 2e 45 6d 70 74 79 | 28 29 3b 0d 0a 09 43 6f |es.Empty|();...Co|
|00001d90| 64 65 53 74 72 69 6e 67 | 20 3d 20 22 22 3b 0d 0a |deString| = "";..|
|00001da0| 7d 0d 0a 0d 0a 00 | |}..... | |
+--------+-------------------------+-------------------------+--------+--------+